FROM openjdk:8

# copy sentinel jar
COPY ./target/sentinel-dashboard.jar /opt/sentinel-dashboard.jar

WORKDIR /opt/

ENV JAVA_OPTS '-Dserver.port=8858 -Dcsp.sentinel.dashboard.server=localhost:8858'

RUN chmod -R +x /opt/sentinel-dashboard.jar

EXPOSE 8858

ENV NACOS_ADDRESS=localhost:8848

CMD java ${JAVA_OPTS} -jar /opt/sentinel-dashboard.jar

